const express = require("express");
const cors = require("cors");
const app = express();
const http = require('http').createServer(app);
const io = require('socket.io')(http, { cors: true });

app.use(express.json({ limit: '10mb' }));
app.use(express.urlencoded({ extended: false, limit: '10mb' }));

http.listen(9000, function () {
    console.log('服务已开启,9000端口被监听...');
});

